import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [{
      path: '/',
      name: 'login',
      component: resolve => void(require(['@/components/login/login'], resolve))
    },
    {
      path: '/home',
      name: 'home',
      component: resolve => void(require(['@/components/home/home'], resolve)),
      children: [
      	{
          //主页
          path: '/index',
          name: 'index',
          component: resolve => void(require(['@/components/home/index'], resolve)),
          meta: {requiresAuth: true}  
        },
        {
          //系统选项
          path: '/system',
          name: 'system',
          component: resolve => void(require(['@/components/system/system'], resolve)),
          meta: {requiresAuth: true}  
        },
        {
          //操作员列表
          path: '/Operator',
          name: 'Operator',
          component: resolve => void(require(['@/components/system/Operator'], resolve)),
          meta: {requiresAuth: true}
        },
        {
          //日志
          path: '/log',
          name: 'log',
          component: resolve => void(require(['@/components/system/log'], resolve)),
          meta: {requiresAuth: true}
        },
        {
          //词典管理
          path: '/dicType',
          name: 'dicType',
          component: resolve => void(require(['@/components/basic/dicType'], resolve)),
          meta: {requiresAuth: true}
        },
        {
          //征收项目
          path: '/collection',
          name: 'collection',
          component: resolve => void(require(['@/components/basic/collection'], resolve)),
          meta: {requiresAuth: true}
        },
        {
          //征收类别
          path: '/category',
          name: 'category',
          component: resolve => void(require(['@/components/basic/category'], resolve)),
          meta: {requiresAuth: true}
        },
         {
          //分表户主管理
          path: '/ustable/:id/:proid',
          name: 'ustable',
          component: resolve => void(require(['@/components/table/ustable'], resolve)),
          meta: {requiresAuth: true}
        },
        // {
        //   //报表分表
        //   path: '/tables/:id?',
        //   name: 'tables',
        //   component: resolve => void(require(['@/components/project/table'], resolve)),
        //   meta: {requiresAuth: true},
        // },
        {
          //分表补偿
          path: '/rform/:id',
          name: 'rform',
          component: resolve => void(require(['@/components/table/rform'], resolve)),
          meta: {requiresAuth: true}
        },
        {
          //分表审核
          path: '/sform/:id',
          name: 'sform',
          component: resolve => void(require(['@/components/table/sform'], resolve)),
          meta: {requiresAuth: true}
        },
        {
          //创建项目
          path: '/addProject',
          name: 'addProject',
          component: resolve => void(require(['@/components/project/addProject'], resolve)),
          meta: {requiresAuth: true}
        },
        {
          //账号管理
          path: '/projectUser',
          name: 'projectUser',
          component: resolve => void(require(['@/components/project/projectUser'], resolve)),
          meta: {requiresAuth: true}
        },
        {
          //征收计划
          path: '/projectPlan',
          name: 'projectPlan',
          component: resolve => void(require(['@/components/project/projectPlan'], resolve)),
          meta: {requiresAuth: true}
        },
        {
          //行政区域
          path: '/projectRegion',
          name: 'projectRegion',
          component: resolve => void(require(['@/components/project/projectRegion'], resolve)),
          meta: {requiresAuth: true}
        },
        {
          //户主管理
          path: '/projectLevyFrom',
          name: 'projectLevyFrom',
          component: resolve => void(require(['@/components/project/projectLevyFrom'], resolve)),
          meta: {requiresAuth: true}
        },
        {
          //补偿标准
          path: '/projectStardard',
          name: 'projectStardard',
          component: resolve => void(require(['@/components/project/projectStardard'], resolve)),
          meta: {requiresAuth: true}
        },
        
        {
          //县级审核
          path: '/countyExamine',
          name: 'countyExamine',
          component: resolve => void(require(['@/components/project/countyExamine'], resolve)),
          meta: {requiresAuth: true}
        },
        
        // {
        //   //业务审核
        //   path: '/businesUdit',
        //   name: 'businesUdit',
        //   component: resolve => void(require(['@/components/project/businesUdit'], resolve)),
        //   meta: {requiresAuth: true}
        // },

        // {
        //   //乡镇财务
        //   path: '/tFinance',
        //   name: 'tFinance',
        //   component: resolve => void(require(['@/components/project/tFinance'], resolve)),
        //   meta: {requiresAuth: true}
        // },
        {
          //财务报销
          path: '/cFinance',
          name: 'cFinance',
          component: resolve => void(require(['@/components/project/cFinance'], resolve)),
          meta: {requiresAuth: true}
        },
        {
          //数据导入
          path: '/yFinance',
          name: 'yFinance',
          component: resolve => void(require(['@/components/project/yFinance'], resolve)),
          meta: {requiresAuth: true}
        },
        {
          //补偿信息查询
          path: '/comInfoQuery',
          name: 'comInfoQuery',
          component: resolve => void(require(['@/components/project/comInfoQuery'], resolve)),
          meta: {requiresAuth: true}
        },
        {
          //支付统计结算表
          path: '/PayReport',
          name: 'PayReport',
          component: resolve => void(require(['@/components/report/PayReport'], resolve)),
          meta: {requiresAuth: true}
        },
        {
          //进度统计表
          path: '/SpeedReport',
          name: 'SpeedReport',
          component: resolve => void(require(['@/components/report/SpeedReport'], resolve)),
          meta: {requiresAuth: true}
        },
        {
          //征地分类统计表
          path: '/LandClass',
          name: 'LandClass',
          component: resolve => void(require(['@/components/report/LandClass'], resolve)),
          meta: {requiresAuth: true}
        },
        {
          //分户征地统计表
          path: '/HlandReport',
          name: 'HlandReport',
          component: resolve => void(require(['@/components/report/HlandReport'], resolve)),
          meta: {requiresAuth: true}
        },
        {
          //征地光荣榜
          path: '/LandGlory',
          name: 'LandGlory',
          component: resolve => void(require(['@/components/report/LandGlory'], resolve)),
          meta: {requiresAuth: true}
        },
        {
          //未领取土地补偿人员统计表
          path: '/UnLandReport',
          name: 'UnLandReport',
          component: resolve => void(require(['@/components/report/UnLandReport'], resolve)),
          meta: {requiresAuth: true}
        },
        {
          //未领取土地补偿人员统计表
          path: '/Reimbursement',
          name: 'Reimbursement',
          component: resolve => void(require(['@/components/project/Reimbursement'], resolve)),
          meta: {requiresAuth: true}
        },
      ]
    },

  ]
})
